<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <title>毕业倒计时</title>
    <style>
        :root {
            --blue-1: #6a93cb --blue-2:#0d47a1 --blue-3:#1976d2
        }

        body {
            margin: 0;
            height: 1000px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: linear-gradient(135deg, #6a93cb 0%, #0d47a1 100%);
            font-family: "Helvetica Neue", Arial, sans-serif;
        }

        .box {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 40px 50px;
            box-shadow: 0 8px 32px rgba(0, 0, 139, 0.4);
            text-align: center;
            color: #fff;
        }

        .title {
            font-size: 50px;
            margin-bottom: 25px;
            letter-spacing: 2px;
        }


        .one {
            display: flex;
            gap: 20px;
            justify-content: center;
        }

        .two {
            background: #1976d2;
            border-radius: 12px;
            width: 90px;
            padding: 15px 0;
            box-shadow: 0 4px 15px rgba(25, 118, 210, 0.6);
        }

        .two:hover {
            transform: translateY(-4px);
        }

        .thr {
            font-size: 36px;
            font-weight: bold;
            display: block;
        }

        .fou {
            font-size: 14px;
            opacity: 0.9;
            margin-top: 4px;
        }

        .tips {
            margin-top: 25px;
            font-size: 15px;
            opacity: 0.8;
        }

        .celebrate {
            display: none;
            font-size: 60px;
            margin-top: 20px;
            animation: pop.8s ease-out forwards;
        }

        @keyframes pop {
            0% {
                transform: scale(0);
            }

            100% {
                transform: scale(1);
            }
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="title">明日方舟周年庆倒计时</div>

        <div class="one">
            <div class="two">
                <span class="thr" id="d">0</span>
                <span class="fou">天</span>
            </div>
            <div class="two">
                <span class="thr" id="h">0</span>
                <span class="fou">时</span>
            </div>
            <div class="two">
                <span class="thr" id="m">0</span>
                <span class="fou">分</span>
            </div>
            <div class="two">
                <span class="thr" id="s">0</span>
                <span class="fou">秒</span>
            </div>
        </div>

        <div class="tips">今天是 2026 年 11月 12 日 11:50:00 </div>
        <div class="celebrate">🎉周年庆开始咯🎉</div>
    </div>

    <script>

        //我的时间 现在
        const today = new Date();
        const target = new Date(today.getFullYear(),
            today.getMonth(),
            today.getDate(),
            11, 50, 0
        ).getTime();

        const now = Date.now();
        const finalTarget = target < now ? target + 86400000 : target;

        function update() {
            let diffSec = Math.floor((finalTarget - Date.now()) / 1000);
            if (diffSec < 0) diffSec = 0;

            
            document.getElementById('d').textContent = String(Math.floor(diffSec / 86400)).padStart(2, '0');
            document.getElementById('h').textContent = String(Math.floor((diffSec % 86400) / 3600)).padStart(2, '0');
            document.getElementById('m').textContent = String(Math.floor((diffSec % 3600) / 60)).padStart(2, '0');
            document.getElementById('s').textContent = String(diffSec % 60).padStart(2, '0');

            
            if (diffSec === 0) {
                document.getElementById('timer').style.display = 'none';
                document.getElementById('celebrate').style.display = 'block';
            }
        }

        update();
        setInterval(update, 1000);
    </script>
</body>

</html>